package com.example.designpartten.memento;

/**
 * @author hql
 * @date 2020/4/16 9:20
 */
public class Client {
    public static void main(String[] args) {

        Orignal orignal = new Orignal();
        Caretaker caretaker = new Caretaker();
        caretaker.setMemento(orignal.createMemento("1111"));
        orignal.restoreMemnto(caretaker.getMemento());

    }
}
